package wisp.game;
//GTGE
import com.golden.gamedev.object.collision.BasicCollisionGroup;
import com.golden.gamedev.object.*;


public class AoeHitCollision extends BasicCollisionGroup{

	private MainGame game;
	private double aoeDamage;
	private PlayerSprite player;
	
	private Timer duration;
	
	public AoeHitCollision(MainGame game, PlayerSprite p){
		this.game = game;
		this.player = p;
		
		duration = new Timer(400);
		duration.setActive(false);
		aoeDamage = 0;
	}
	
	public void collided(Sprite s1, Sprite s2){
		
		
		System.out.println("[COLLISION ::: AoE] " + s1.toString() + " w/ " + s2.toString());
		
		MonsterSprite m = (MonsterSprite)s1;
		m.hit(player, aoeDamage);
	
	}
	
	public void SetAOEdamage(double dmg){
		aoeDamage = dmg;
	}

}
